<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">

	<CodeSnippet Format="1.0.0">
		<Header>
			<Title>TestServices Test</Title>
			<Shortcut>mtest</Shortcut>
			<Description>Creates a Test method</Description>
			<SnippetTypes>
				<SnippetType>Expansion</SnippetType>
			</SnippetTypes>
		</Header>
		<Snippet>
			<Declarations>
				<Literal>
					<ID>method</ID>
					<Default>TestSomething</Default>
				</Literal>
				<Literal>
					<ID>description</ID>
					<Default>Description</Default>
				</Literal>
			</Declarations>
			<Code Language="CSharp">
        <![CDATA[/// <summary>
	/// $description$
	/// </summary>
	[TestMethod]
    [TestPriority(Priority.P1)]
	public void $method$()
	{
		$end$
	}]]></Code>
		</Snippet>
	</CodeSnippet>
	
	<CodeSnippet Format="1.0.0">
			<Header>
				<Title>TestServices Unimplemented Test</Title>
				<Shortcut>mutest</Shortcut>
				<Description>Creates an unimplemented Test method</Description>
				<SnippetTypes>
					<SnippetType>Expansion</SnippetType>
				</SnippetTypes>
			</Header>
			<Snippet>
				<Declarations>
					<Literal>
						<ID>method</ID>
						<Default>TestSomething</Default>
					</Literal>
					<Literal>
						<ID>description</ID>
						<Default>Description</Default>
					</Literal>
				</Declarations>
				<Code Language="CSharp"><![CDATA[
	/// <summary>
	/// $description$
	/// </summary>
	[UnimplementedTest]
	public void $method$()
	{
		throw new NotImplementedException();
	}
	$end$]]></Code>
			</Snippet>
	</CodeSnippet>

	<CodeSnippet Format="1.0.0">
		<Header>
			<Title>Copyright declaration</Title>
			<Shortcut>copy</Shortcut>
			<Description>Creates a copyright declaration</Description>
			<SnippetTypes>
				<SnippetType>Expansion</SnippetType>
			</SnippetTypes>
		</Header>
		<Snippet>
			<Declarations>
				<Literal>
					<ID>classname</ID>
					<Default>ClassName</Default>
				</Literal>
			</Declarations>
			<Code Language="CSharp">
				<![CDATA[//------------------------------------------------------------------------------
// <copyright file="$classname$.cs" company="Microsoft">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
	$end$]]>
			</Code>
		</Snippet>
	</CodeSnippet>

	<CodeSnippet Format="1.0.0">
		<Header>
			<Title>Evaluate compare</Title>
			<Shortcut>ec</Shortcut>
			<SnippetTypes>
				<SnippetType>Expansion</SnippetType>
			</SnippetTypes>
		</Header>
		<Snippet>
			<Declarations>
				<Literal>
					<ID>actual</ID>
					<Default>actualResult</Default>
				</Literal>
				<Literal>
					<ID>expected</ID>
					<Default>expectedResult</Default>
				</Literal>
			</Declarations>
			<Code Language="CSharp">
				<![CDATA[Evaluate.Compare($actual$, $expected$);
			$end$]]>
			</Code>
		</Snippet>
	</CodeSnippet>

	<CodeSnippet Format="1.0.0">
		<Header>
			<Title>Evaluate is not null</Title>
			<Shortcut>enn</Shortcut>
			<SnippetTypes>
				<SnippetType>Expansion</SnippetType>
			</SnippetTypes>
		</Header>
		<Snippet>
			<Declarations>				
				<Literal>
					<ID>argument</ID>
					<Default>argument</Default>
				</Literal>
			</Declarations>
			<Code Language="CSharp">
				<![CDATA[Evaluate.IsNotNull($argument$);
			$end$]]>
			</Code>
		</Snippet>
	</CodeSnippet>
	
		<CodeSnippet Format="1.0.0">
		<Header>
			<Title>Data method</Title>
			<Shortcut>dm</Shortcut>
			<SnippetTypes>
				<SnippetType>Expansion</SnippetType>
			</SnippetTypes>
		</Header>
		<Snippet>
			<Declarations>				
				<Literal>
					<ID>argument</ID>
					<Default>argument</Default>
				</Literal>
			</Declarations>
			<Code Language="CSharp">
				<![CDATA[public static DataTable DataMethod1()
    {
        DataTable table = new DataTable();

        table.Columns.Add("CategoryId", typeof(int));
        table.Columns.Add("CategoryName", typeof(string));
        table.Columns.Add("Description", typeof(string));
        table.Columns.Add("Price", typeof(decimal));

        table.Rows.Add(1, "Beverages", "Soft drinks, coffees, teas, beers, and ales", 3.50);
        table.Rows.Add(2, "Condiments", "Sweet and savory sauces, relishes, spreads, and seasonings", 4.50);
        table.Rows.Add(3, "Confections",	"Desserts, candies, and sweet breads", 2.00);
        table.Rows.Add(4, "Dairy", "Products	Cheeses", 1.00);
        table.Rows.Add(5, "Grains/Cereals", "Breads, crackers, pasta, and cereal", 5.50);
        table.Rows.Add(6, "Meat/Poultry", "Prepared meats", 5.00);
        table.Rows.Add(7, "Produce	Dried", "fruit and bean curd", 45.50);
        table.Rows.Add(8, "Seafood", "Seaweed and fish", 4.50);

        return table;
    }$end$]]>
			</Code>
		</Snippet>
	</CodeSnippet>

    <CodeSnippet Format="1.0.0">
        <Header>
            <Title>Data method</Title>
            <Shortcut>dm2</Shortcut>
            <SnippetTypes>
                <SnippetType>Expansion</SnippetType>
            </SnippetTypes>
        </Header>
        <Snippet>
            <Declarations>
                <Literal>
                    <ID>argument</ID>
                    <Default>argument</Default>
                </Literal>
            </Declarations>
            <Code Language="CSharp">
                <![CDATA[[DataMethod(), AxSessionPermission(SecurityAction.Assert)]
    public static DataTable AllCountries()
    {
    var table = new DataTable();
    table.Columns.Add("Country", typeof(string));
    table.Rows.Add("USA");
    table.Rows.Add("CN");

    return table;
    }

    [DataMethod(), AxSessionPermission(SecurityAction.Assert)]
    public static DataTable StateByCountry(string country)
    {
    var table = new DataTable();
    table.Columns.Add("State", typeof(string));

    if (country == "USA")
    {
    table.Rows.Add("Washington");
    table.Rows.Add("California");
    }
    else if (country == "CN")
    {
    table.Rows.Add("British Columbia");
    table.Rows.Add("Calgary");
    }

    return table;
    }

    [DataMethod(), AxSessionPermission(SecurityAction.Assert)]
    public static DataTable CityByState(string state)
    {
    var table = new DataTable();
    table.Columns.Add("City", typeof(string));

    if (state == "Washington")
    {
    table.Rows.Add("Seattle");
    table.Rows.Add("Bellingham");
    }
    else if (state == "California")
    {
    table.Rows.Add("San Diego");
    table.Rows.Add("Los Angeles");
    }
    else if (state == "British Columbia")
    {
    table.Rows.Add("Vancouver");
    table.Rows.Add("Langley");
    }
    else if (state == "Calgary")
    {
    table.Rows.Add("Banff");
    }

    return table;
    }$end$]]>
			</Code>
    </Snippet>
    </CodeSnippet>

</CodeSnippets>
